import pandas as pd
import matplotlib.pyplot as plt
from sklearn.utils import shuffle
from sklearn.preprocessing import StandardScaler


# 读取日志数据
data = pd.read_csv("data.csv")

# 数据处理
result = data.groupby(['src_ip', 'dst_ip', 'dst_port']).size().reset_index(name='count')
print(result)
result.to_csv("result.csv", encoding = 'utf-8')